<template>
    <div>
        <h2>模块测试(namespaced:false)</h2>

        <p>user:{{ $store.state.mdA.user }}</p>
        <p>token:{{ $store.state.mdA.token }}</p>
        <p>token:{{ $store.getters.isLogin }}</p>
        <p>
            <button @click="$store.commit('updateInfo',{user:'c123123'})">更新用户</button>
        </p>
        <p>
            <button @click="$store.dispatch('loginAndUpdateInfo')">模拟登录</button>
        </p>

    </div>
</template>

<script>
    export default {
        mounted(){
            console.log("当前实例",this);
            console.log("当前实例$store",this.$store);
        }
    }
</script>

<style lang="scss" scoped>

</style>